<button type="button" onclick="hello();">Click me</button>
<script type="text/javascript">
    function hello() {
        console.log('hello 1');
    }

</script>